<?php

/*
|--------------------------------------------------------------------------
| Routes File
|--------------------------------------------------------------------------
|
| Here is where you will register all of the routes in an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/


/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| This route group applies the "web" middleware group to every route
| it contains. The "web" middleware group is defined in your HTTP
| kernel and includes session state, CSRF protection, and more.
|
*/
use App\Entity\Member;

Route::group(['middleware' => ['web']], function () {
    Route::get('/login', 'View\MemberController@tologin');

    Route::get('/register', 'View\MemberController@toRegist');


    //测试
    Route::any('/',function(){
        return Member::all();
    });
    //测试图片验证
    Route::any('/Service/Validate_Code/create','Service\ValidateController@create');
    //测试手机验证
    Route::any('/Service/Validate_phone/send','Service\ValidateController@sendSMS');


});
